package com.aau.edu.config;

import com.aau.edu.service.MyService;
import com.aau.edu.service.impl.MyServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Classname PlainJavaConfig
 * @Date 2024/12/18 15:51
 * @Created by 鲍宪立
 */
@Component
public class PlainJavaConfig {

    @Bean
//    @Primary
    public MyService myService() {
        System.out.println("未添加@Configuration的myService()方法执行了");
        return new MyServiceImpl();
    }
}
